import request from '@/utils/request'
export function appList (data) { //列表
  return request({
    url: '/cms/startPage',
    method: 'get',
    params : data
  })
}
export function allChannel () {//获取主渠道子渠道
  return request({
    url :'/communal/communal-channel/all',
    method: 'get',
  })
}

export function addAppStart (data) {//新增启动页
  return request({
    url :'/cms/startPage',
    method: 'post',
    data
  })
}
export function delAppStart (id) {//删除启动页
  return request({
    url :'/cms/startPage/'+id,
    method: 'DELETE',
  })
}

export function compileAppStart (data) {//编辑
  return request({
    url :'/cms/startPage',
    method: 'put',
    data
  })
}
